{template header}

    {template sidebar}

    <!-- artile begin -->
    <div class="article">

        {template title}



        <!--{if $a == 'index'}-->
                <form class="form-search" action="{$this->url($c, null, $this->get())}">
                    <table>
                        <tr><td class="td1" width="20%">供货商名称：</td>
                        <td>

                    <div class="input-append">
                        <input type="text" name="key" class="span2 search-query" placeholder="请输入商品名称" />
                        <button type="button" class="btn search">搜索</button>
                    </div>
                            </td >
                        </table>
                    </tr>
                </form>


        <table>

            <tr>
                <td><input type="checkbox" name="id" value="{$v['id']}" /></td>
                <th width="15%">入库单号</th>
                <th width="20%">采购单号</th>
                <th width="15%">到货日期</th>
                <th width="15%">总金额</th>
                <th width="15%">操作</th>


            </tr>

            <!--{if $result}-->
            <!--{loop $result $v}-->
            <tr>
                <td><input type="checkbox" name="id" value="{$v['id']}" /></td>
                <td>{$v['inOutStockNo']}</td>
                <td>{$v['purchaseNo']}</td>
                <td>{$v['inOutStockDate']}</td>
                <td>{$v['totalCost']}</td>
                <td class="operate">
                    <a href="{$this->url($c,'look',array('inOutStockNo'=>$v['inOutStockNo']))}">查看</a>
                </td>
            </tr>
            <!--{/loop}-->
            <!--{else}-->
            <tr>

                <td colspan="4">没有数据记录文件！</td>

            </tr>
            <!--{/if}-->
            </table>
        <!--{/if}-->



        <!--{if $a == 'look'}-->
        <form method="post" action="{$this->url($c, 'save', array('id' => $result['id']))}">

                <table>
                <tr>
                    <td class="td1" width="30%">入库单号：</td>
                    <td class="td2"  colspan="3">
                        <!-- class="required" 必填字段  -->
                        <input type="text" size="30" name="inOutStockNo" placeholder="请输入供货商名称" class="required" value="{$a == 'look' ? $result['inOutStockNo'] : ''}" />

                    </td>
                </tr>
                <tr>
                    <td class="td1" width="30%">采购单号：</td>
                    <td class="td2"  colspan="3">
                        <!-- class="required" 必填字段  -->
                        <input type="text" size="30" name="purchaseNo" placeholder="请输入采购日期" class="required" value="{$a == 'look' ? $result['purchaseNo'] : ''}" />

                    </td>
                </tr>
                <tr>
                    <td class="td1" width="30%">到货日期：</td>
                    <td class="td2" colspan="3">
                        <!-- class="required" 必填字段  -->
                        <input type="text" size="30" name="inOutStockDate" placeholder="请输入到货日期" class="required" value="{$a == 'look' ? $result['inOutStockDate'] : ''}" />

                    </td>
                </tr>

                <tr>
                    <td class="td1" width="30%">货品种类：</td>
                    <td class="td2" colspan="3">
                        <!-- class="required" 必填字段  -->
                        <input type="text" size="30" name="inOutRecList" placeholder="请输入货品种类" class="required" value="{$a == 'look' ? $result['inOutRecList'] : ''}" />

                    </td>
                </tr>
                <tr>
                    <td class="td1" width="30%">总金额：</td>
                    <td class="td2" colspan="3">
                        <!-- class="required" 必填字段  -->
                        <input type="text" size="30" name="totalCost" placeholder="请输入总金额" class="required" value="{$a == 'look' ? $result['totalCost'] : ''}" />

                    </td>
                </tr>
                <tr>
                    <td class="td1" width="30%">操作员：</td>
                    <td class="td2" colspan="3">
                        <!-- class="required" 必填字段  -->
                        <input type="text" size="30" name="operator" placeholder="请输入员工姓名" class="required" value="{$a == 'look' ? $result['operator'] : ''}" />
                    </td>


                </tr>


            </table>
        </form>
        <!--{/if}-->

    </div>
<!-- artile end -->
{template footer}